Calculates a Finite Impulse Response Filter.
[Visual Basic]
Overloads Public Shared Function FiniteImpulseResponse( _
ByVal s As Series, _
ByVal elementValue As ElementValue, _
ByVal weights() As Double _
) As Series
[C#]
public static Series FiniteImpulseResponse(
Series s,
ElementValue elementValue,
double [] weights
);
A series where the first element is the FIR of the asset on the most recent period considered, the second term is the FIR on the period before that and so on.
Exception | Description |
---|---|
Thrown if the length of the given series, s, is less than the length of weights double array or if any elements of the s is strictly negative. |
This is a type of smoothing filter that assigns different weights to prices from the past.
The FIR indicator is evaluated by the following formula:
FIR = ((historicalValues[i]*weights[0]) + historicalValues[i-1]*wights[1] + ...)/(Sum of weights)
FinancialEngine Class | FinancialEngine Members | Overload List
2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.